{{#if allOptional}}
    {{#each allParamsWithRequestBodyProperties}}
{{paramName}}: typing.Optional[{{dataType}}] = None,
    {{/each}}
{{else}}
    {{#each requiredParamsWithRequestBodyProperties}}
{{#unless skipRequiredPathParams}}
{{paramName}}: {{dataType}},
{{else}}
    {{#unless isPathParam}}
{{paramName}}: {{dataType}},
    {{/unless}}
{{/unless}}
    {{/each}}
    {{#each optionalParamsWithRequestBodyProperties}}
{{paramName}}: typing.Optional[{{dataType}}] = None,
    {{/each}}
{{/if}}